Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): ping langchain-core upper bound #94

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

sfc-gh-twhite
Copy link
Collaborator

We were running into issues with PythonTool.

Example:

from agent_gateway.tools import PythonTool
import json
import asyncio

def get_news(_) -> dict:
    with open("tests/data/response.json") as f:
        d = json.load(f)
    return d

python_config = {
    "tool_description": "searches for relevant news based on user query",
    "output_description": "relevant articles",
    "python_func": get_news,
}
news_search = PythonTool(**python_config)
response = await news_search("When is Apple releasing a new chip?")
response

@sfc-gh-alherrera sfc-gh-alherrera merged commit 9746930 into Snowflake-Labs:main Dec 18, 2024
2 checks passed
@sfc-gh-twhite sfc-gh-twhite deleted the pinning-langchain branch December 18, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants